﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;
namespace HFWebApp.user
{
    public partial class uc_ViewLawyerAnswer : BagePages
    {
        public hf.Model.LawyerNote model = new hf.Model.LawyerNote();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.checkAccountIsLogin();
            if (!Page.IsPostBack)
            {
                string id = this.GetQuery("id");
                if (id == "")
                {
                    Response.Write("参数错误");
                    Response.End();
                }
                else { 
                    int total = 0;
                    model = LawyerController.getController().getLawyerNoteList(1, 1 ,"ID=" + id ,out total)[0];
                }
            }
        }

        public string getLawyerName(string LawyerID)
        {
            hf.Model.Lawyer lawyer = LawyerController.getController().getLawyerModel(int.Parse(LawyerID));
            if (lawyer != null)
            {
                return lawyer.RealName;
            }
            else
            {
                return "";
            }
        }
    }
}